package com.lxw.report.engine.dataModel;

import com.lxw.report.engine.enums.AlignTypeEnum;

/**
 * 单元格格式
 * @author lxw
 */
public class Format {

    /**
     * 保留几位小数位
     */
    private int decimalCount=0;

    /**
     * 使用百分比
     */
    private boolean usePercent=false;

    /**
     * 使用千分符
     */
    private boolean useThousandth=false;

    /**
     * 为空显示文本
     */
    private String nullDisplay;

    /**
     * 日期格式
     */
    private String dateRegex;

    public int getDecimalCount() {
        return decimalCount;
    }

    public void setDecimalCount(int decimalCount) {
        this.decimalCount = decimalCount;
    }

    public boolean isUsePercent() {
        return usePercent;
    }

    public void setUsePercent(boolean usePercent) {
        this.usePercent = usePercent;
    }

    public boolean isUseThousandth() {
        return useThousandth;
    }

    public void setUseThousandth(boolean useThousandth) {
        this.useThousandth = useThousandth;
    }

    public String getNullDisplay() {
        return nullDisplay;
    }

    public void setNullDisplay(String nullDisplay) {
        this.nullDisplay = nullDisplay;
    }

    public String getDateRegex() {
        return dateRegex;
    }

    public void setDateRegex(String dateRegex) {
        this.dateRegex = dateRegex;
    }
}
